package com.karry.yl.domain.services;

import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.karry.commons.base.SuperEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 交接班
 *
 * @author Administrator
 */
@TableName("hand_over")
public class HandOver extends SuperEntity {

    /**
     * 机构id
     */
    private Long orgId;
    /**
     * 交接人
     */
    private String handOverNames;
    /**
     * 接受人
     */
    private String acceptNames;
    /**
     * 接受状态，0未移交1已移交
     */
    private Integer handOverStart;
    public static final Integer HANDOVERSTART_0 = 0;
    public static final Integer HANDOVERSTART_1 = 1;
    /**
     * 备注
     */
    private String remark;

    /**
     * 移交时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") //出参
    private Date handOverTime;

    /**
     * 接班时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") //出参
    private Date acceptTime;

    public Date getAcceptTime() {
        return acceptTime;
    }

    public void setAcceptTime(Date acceptTime) {
        this.acceptTime = acceptTime;
    }

    public Date getHandOverTime() {
        return handOverTime;
    }

    public void setHandOverTime(Date handOverTime) {
        this.handOverTime = handOverTime;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getHandOverNames() {
        return handOverNames;
    }

    public void setHandOverNames(String handOverNames) {
        this.handOverNames = handOverNames;
    }

    public String getAcceptNames() {
        return acceptNames;
    }

    public void setAcceptNames(String acceptNames) {
        this.acceptNames = acceptNames;
    }

    public Integer getHandOverStart() {
        return handOverStart;
    }

    public void setHandOverStart(Integer handOverStart) {
        this.handOverStart = handOverStart;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "HandOver{" +
                "orgId=" + orgId +
                ", handOverNames='" + handOverNames + '\'' +
                ", acceptNames='" + acceptNames + '\'' +
                ", handOverStart=" + handOverStart +
                ", remark='" + remark + '\'' +
                ", handOverTime=" + handOverTime +
                ", id=" + id +
                ", createdTime=" + createdTime +
                ", lastModifiedTime=" + lastModifiedTime +
                ", deleted=" + deleted +
                '}';
    }
}
